package ua.form;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import ua.model.UserBean;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

@SuppressWarnings("serial")
public class UserListForm extends ActionForm{
	private Collection<UserBean> users;
	
	
	private String search;
	
	public String getSearch()
	{
		return search;
	}
	
	public void setSearch(String data)
	{
		search=data;
	}
	
	
	/* get the collection users*/
	 
    public Collection<UserBean> getUsers() {
        return users;
    }
 
	 /* set the collection users*/

    public void setUsers(List<UserBean> users) {
        this.users = users;
    }

	 /* reset the collection users*/

    @Override
	public void reset(ActionMapping arg0, HttpServletRequest arg1) {
    	users = new ArrayList<UserBean>();
    }
}



